import Vue from 'vue'
import App from './App.vue'
import router from './router'

// // 引入vuex
// import Vuex from './store/index'
// Vue.use(Vuex)

// 引入全局 vant
// import indexs from './components/vant-quanju/indexs'
// Vue(indexs.use)


import axios from 'axios';
Vue.prototype.$http=axios;
axios.defaults.baseURL='https://d33a5037-6c63-4e92-8bb1-30018ab701ea.bspapp.com/http'

// 单元格
import { Cell, CellGroup } from 'vant';
Vue.use(Cell);
Vue.use(CellGroup);
// button
import { Button } from 'vant';
Vue.use(Button);
//布局
import { Col, Row } from 'vant';
Vue.use(Col);
Vue.use(Row);

// 懒加载
import { Lazyload } from 'vant';
Vue.use(Lazyload);

import { Form } from 'vant';
import { Field } from 'vant';
import { Tabbar, TabbarItem } from 'vant';
// 图标
import { Icon } from 'vant';
// tab标签页
import { Tab, Tabs } from 'vant';
import { Popup } from 'vant';
import store from './store'
Vue.use(Popup);
Vue.use(Tab);
Vue.use(Tabs);

Vue.use(Form);
Vue.use(Field);
// Vue.use(VanImage);
Vue.use(Tabbar);
Vue.use(TabbarItem);
// import { Image as VanImage } from 'vant';
Vue.use(Icon);


// localStorage.getItem()

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
  store,

  beforeCreate(){
    Vue.prototype.$bus = this
  }
}).$mount('#app')
